package com.qf.sclg.result;

/**
 * Created with IntelliJ IDEA.
 * User: zdk
 * Date: 2021/10/12 16:21
 * Description:
 * Version: V1.0
 */
public class ResponseData {
    private  String code;
    private  String message;
    private  Object object;

    public ResponseData() {
        this.code = ResponseCode.SUCCESS.getCode();
        this.message = ResponseCode.SUCCESS.getMessage();
    }
    public ResponseData(ResponseCode responseCode,  Object object) {
        this.code = responseCode.getCode();
        this.message =  responseCode.getMessage();
        this.object = object;
    }
    public ResponseData(Object object) {
        this.code = ResponseCode.SUCCESS.getCode();
        this.message = ResponseCode.SUCCESS.getMessage();
        this.object = object;
    }

    public ResponseData(ResponseCode responseCode) {
        this.code = responseCode.getCode();
        this.message =  responseCode.getMessage();
    }
    public ResponseData(String code, String message) {
        this.code = code;
        this.message = message;
        this.object = object;
    }
    public ResponseData(String code, String message,Object object) {
        this.code = code;
        this.message = message;
        this.object = object;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
}
